import z from 'zod'

const envSchema = z.object({
    NODE_ENV: z.enum(['development', 'production']).default('development'),
    PORT: z.string().default('3000'),
    MONGO_URL: z.string().default('mongodb://localhost:27017/mytest'),
    REDIS_URI: z.string().default('redis://localhost:6379'),
    JWT_SECRET: z.string().default('secret_xo_!@1(UHY!GLOwef[)9OL-88'),
    API_TS_URL: z.string().default('../frontend/src/utils/api.ts'),
})

const env = envSchema.parse(process.env)

export default env